package health.lm.com.mine.present;


import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.SettingWalletPswActivity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 钱包密码
 */

public class SettingWalletPswPresenter extends XPresent<SettingWalletPswActivity> {

    public void getCode(String phone) {
        MineModel.getInstance().sendMsgCode(phone,0, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object o) {
                if (hasV()) getV().getCodeSuccess();
            }
        });
    }
    public void submit(String toString, String s, String code){
        MineModel.getInstance().walletModifyPass(toString, s, code, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object pO) {
                if (hasV()) getV().changePswSuccess();
            }
        });
    }
}
